package fr.cnam.ratpProject.sharedDatas;

import java.io.Serializable;
import java.util.ArrayList;

public class Ligne implements Serializable{

	private static final long serialVersionUID = 1L;
	
	private String idLigne;
	private String nom;
	private String urlImage;
	private String couleur;
	private Station direction;
	private ArrayList<Station> ligne = new ArrayList<Station>();

	public Ligne(){
		
	}
	
	public String getNom() {
		return nom;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}

	public ArrayList<Station> getLigne() {
		return ligne;
	}

	public void setLigne(ArrayList<Station> ligne) {
		this.ligne = ligne;
	}

	public String getUrlImage() {
		return urlImage;
	}

	public void setUrlImage(String urlImage) {
		this.urlImage = urlImage;
	}

	public String getCouleur() {
		return couleur;
	}

	public void setCouleur(String couleur) {
		this.couleur = couleur;
	}

	public Station getDirection() {
		return direction;
	}

	public void setDirection(Station direction) {
		this.direction = direction;
	}
	
	public Station getTerminus1(){
		return ligne.get(0);
	}
	
	public Station getTerminus2(){
		return ligne.get(ligne.size());
	}

	public String getIdLigne() {
		return idLigne;
	}

	public void setIdLigne(String idLigne) {
		this.idLigne = idLigne;
	}
	
}
